Fix for bug #6648

Added template call to _executor_internal to allow the passing of arbitrary data to modules.