Palette: rename ref counting functions

bring them inline with other classes and be compatible with Holder smart ptr
Font: use a smartpointer instead of macro