Fix reversed current/expected type

Fix some reversed type of arm pattern and type of search pattern
in error message.