Fix mean magnetic moment by taking absolute value. Switch default AST transformation to numpy.