Fix silent failure when using metamethods on an object without an attached state
Add support for array slicing