test: add support for 16-bit non-vector types in the test suite
test: add tests for extract_bits()
extract: fix the implementation of extract_bits() for NULL arch