Add checks for correct cache intialization
The following discussion from !59 (merged) should be addressed:
Maybe make this explicit by adding a
cache_initializedboolean to the cache, which needs to be
Truewhen this method is called.
Yes, and there are more places, like the gridding() and degridding() methods where a properly initialized cache is needed, but not checked for.