Improve MapWithReferences implementation

Better support for YAML serialization/deserialization
Fix integration tests verification script