Added test and solution for jsonsubtypes with interfaces, does not work with enums yet. Issue #164