fixed incorrect toArray assignment in stdfuncs object