boost::mpl: reverse, replace and sort

Signed-off-by: Alex Dubov <oakad@yahoo.com>