Fix lot's of inline implementation ordering errors (make sure, all inline functions are implemented before first use)