added NaN and infinity constants
full support for global constants; small fixes