Fix for #215 and some other related improvements

I suggest moving the `T_` constants to `AbstractClient`.

The `$_types_091`, ..., `getSupportedDataTypes`, `checkDataTypeIsSupported`, ... and all those static functions could be also moved to `AbstractClient`