Fixes filter method being called multiple times. 

Fixes #459 by adding filtered_keys method. It combines attributes.keys with association keys and passes them to filter method memoizing result.