different approach to fixing revisions

re-introduced the use of wp_revisions_to_keep, but cast the argument as
an object to avoid notice
fixes #119