Issue 12568 - std.functional.memoize does not work with constant arrays

https://issues.dlang.org/show_bug.cgi?id=12568

This smells like a type-inference compiler bug, *or* a type-inference hash lookup issue. I'll ping @9rnsr to be sure.