Omitting stale fields in generated read method implemented.

Fix for small bug in ObjectReader added as well.