add [] to +computed

I saw issue #20 for this and have wanted to learn more about PEGs so gave it a shot.  Let me know if it needs any changes.