The code for SO question - http://stackoverflow.com/questions/27588144/polymorphism-wcf-deserialization-doesnt-work