Fixes member type repository when member types don't have properties declared and adds tests. Adds IMemberTypeService.