Add correct handling of NaN in product_human and ratio_human.
Fix library build in grunt.