Physics/restitution: sphere not bouncing below some velocity limit

I just found a solution to this issue right after posting, in the answer here: