Fixed #457, generally improved multi-PK models handling and inherited models