[SQL] Refactors data type pattern matching

Refactors/adds extractors for `DataType` and `Binary*` types to ease and simplify data type related (nested) pattern matching.
Right, this type parameter can be removed. Thanks.