gom: Add guards in class metadata setters
gom: Add support for creating columns with references
tests: Add test for columns with references