Fix reversed current/expected type

It is reversed that type of arm pattern and type of search pattern
in error message.