Added bool, uint and double types. Improved operator[].