wrote test and fixed bug where mapped classes wouldn't write discriminators for properties