Added rb_pointers.h header to have specific commands to check pointers. Added type,domain,domain_id template parameters too.