Escape leading newline in setter
Fix allowed field name and type characters