Fix #879: Class.isAssignableFrom should mimic runtime type tests behavior.