Changing the method of setting the arguments for the SecureAction class for some of the hook callbacks as they where wrong and hence, causing classcast exceptions when security is enabled. (FELIX-3220)