FIX: make it possible to call memory_usage on functions with anonymous args

The inspect-based check seem useless and limiting to me.