Fixing weird condition where Jackson using setters before actually using the correct constructor