Misc improvements type-handling and schema-access for Range, Optional