Handle block param for custom matcher with block_param method

PR for issue #321