Added check that options.predef really is an array

I'm getting an error because options.predef exists, but is not an array.

This is, admittedly, probably the wrong way to fix the issue!