Fix bugs introduced in 548dcbe.

- Assert used wrong varname.
- Assert wasn't compatible with WFArray.