Memoizing the returned time dimension for a ncWMS layer

The code was looping before hitting the guard/memo code this returns early if the time
dimension has been memoized.