Added replacement method for single value

For [[ and $, and methods for [ are still to be implemented
Implemented replacement methods for [