4 0 activemodel inclusion chain fix

cc @josevalim @drogus

master version #11002