explicitly enable slicing syntax

Apparently it has been feature-gated.
make all statics const