added check to prevent Float superclass var init before calling super (close #2202)