Remove assertion of type on batch context.

Was breaking compatibility with other batch engines, such as that
provided by drush (drush uses an object for context).