Fixed bug in MapSerializer.construct() which caused infinite loop when called