Fix getval/setval and sync header w/ functions.