Instance factory support for unmarshalling 

Discussion at #20.