refactor: allocator always the last as a function's argument - closes #374