PreValue updating

Better handling of prevalues in datatypes...