smaz_implementations-base_64_tools: new primitive to check end of input