added missing bug_tr485 test (see 4c0f1bb48b8)
chg: replaced all n_* with np* functions to reduce overhead
fix: wrong conversion from number to long
chg: moved QlogSize from tgb.cc to longrat.h