Support arrays. Added more doctypes.