Use array_keys() in user option filter functions when looping through default user options.

Props bbPress revision 4957
Tweak theme compatibility to hook to loop_start and loop_end, to maximise compatibility with third party plugins and existing WordPress themes

Props bbPress revision 4972.
Make sure WordPress supports post thumbnails for the achievements post type