Fix build by adding slicing syntax.

Sure... I considered it but figured they must have been the way they are now for a reason, since IIRC we already had the appropriate methods.