Fixes bug where page event wasn't always recieving int.

There was a bug where directly setting a page would trigger the
page event with a string passed for the page number, instead of
the more natural and expected int. This has been fixed and now any
page event or content callback will be pased an int value for the
new page number