fix lots of maxBounds issues, close #1491, close #1475, close #1194, close #900, #1333