Fix functions in object properties accidentially being recognized as constructors