Make sure maxvisits is passed around as an int.

As discussed on IRC, worth checking out whether Piwik_FetchOne does some casting-magic.