added type.zero() function for runtime