Rename filter() args to "input" and "output".

Rename other attrs and vars for consistency.