Refactor patterns in `quantize_patterns.cc` depending on compute-heaviness.
Refactor patterns in `quantize_patterns.cc` depending on compute-heaviness.

* Implemented and added tests for `GetElementType`, and had minor cleanups.
* Refactor singular op patterns into `QuantizeSingularOpPattern`, excluding unnecessary requantize for singular ops with qi8 output.
