Remove trailing slash from a_type param before filtering by that type

See #56, #57