Make set_field* functions static (internal).
Add implementation for x86_ref_search_instructions_by_mnemonic.
Some minor refactoring.
Add a very basic test of x86_ref_search_instructions_by_mnemonic.