Made typing in Record class hierarchies better and bound to the RecordType's class.
Added ParentIdAttribute support.