Fixed missing braces.
Backported paginated post/page cache clearing.
Added new invalidation method: post/page + posts index page.

Clears cache for modified post/page. Also clears posts index page if content of type 'post' was changed.
Added hook to customise clearing array externally.
Fixed filter hook.