reference_type is a string? That's somewhat surprising, given that elsewhere reference type is a class.