cpp: Document PixelProperties pixelTypeFrom*
cpp: PixelProperties, switch to isInteger for numeric_limits compatibility

Also add testcases and correct errors found.