M/arithmetic fixes

and improved error messages etc.
name testNumericScript... would fit better