rewrite slice parser to match grammar; improve scalar value assertion; fix slice evaluator bugs; add stdio.h to log header