fix(registration): correct lines for assertions and compiler errors.

Changine the 'go_bandit' macro to an object-like macro as VS and gcc
seems to have problems expanding __LINE__ for function-like macros
that are passed lambdas as arguments.