Be strict and blow up if we specify invalid parameters.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>