cleanup: drop some helper functions + rework getbootparam/checkvalue/checkbootparam