Fix RectangularSensor schema

It should have individual x and y half-angle properties, not directions.

Also made it possible to control the access level of generated writers for embedding as private in a wrapper library.