Fix CommandArg buffer bugs. Remove non-compiling tests (library should be tested from within the scala lib).