Fixed a fatal bug with field calculation functions in the default or temporary library, fixed a bug with accessing field attributes by index.