MDL-31885 Removed static caching from filter_activitynames

Caching does not save a lot, there are no DB requests in the filter anyway. But it prevents from applying different logic for different modules inside the course