fixed getModelValue to only query the value of leaves and evaluate more complex bv terms