Bug fixes

Fixes for Id field serialization/deserialization issues
Updated getTable class type validation to allow only concrete classes