fixed generator type assumption error

This PR adds a type check to ensure that the value of "options" is iterable.

Fixes Issue: https://github.com/rcbops/ansible-lxc-rpc/issues/564