Implemented support for $obj in the flat memory model. All regressions are now passing.