[nsl] add log2+1 for integer values with test

Authored by sgerlach on Jan 20 2019, 10:52 AM.