Changing uniqueness validation to not use ObjectSpace as jRuby 1.9 has it disabled by default