Fix ToMany associations with custom types