Make typed sequence and dictionary serialization more robust in JSONSerializer; fix minor issue in alert/prompt test code.