Fix test that broken when we moved some things to cpack directory
Make ImageSpec::get_float_attribute correctly convert many integer types.