Interest: Fix bug in setKeyLocator for checking the type of the keyLocator parameter.