Enable slicing syntax feature

Newer versions of rust require slicing to be enabled through a crate
attribute to be able to use [] as .as_slice()