Added session.bug_compat_42 and session.bug_compat_warn to the deprecated list (removed in 5.4.0) and fixed isDeprecated() function