Cleanup macro mess in Background.h

Details

Description

While digging into a doxygen warning in Background.h, we noticed a variety of BOOST_PP_SEQ_FOR_EACH-related macros. These should be cleaned up and replace with ordinary code (possibly just by templating the relevant methods).