Addressable::Template#match accepts optional block

This mimics `Regexp#match`.