tiff: support 32bit float input

- added support for 32bit float tiff input
- tested with enblend/enfuse 32bit float TIFFs
- improved error checking and factored exit path to a single goto label