* addToStore now adds unconditionally, it doesn't use readOnlyMode. Read-only operation is up to the caller (who can call computeStorePathForPath).
* Added new operation hasSubstitutes(), which is more efficient than querySubstitutes().size() > 0.