More correct comparing of type for ActionChains

Fix failures for keyUp(), keyDown()  in case of using PHPWebDriver_WebDriverKeys' as $value