physics-bh: fixed rare crash, better assignment info dump

I think it's high time I did something about that damn parser. Maybe instead of reading from lua stack make lua dump'em to a structure. Might have to copy some code from SWIG for that, however I will absolutely not include an extra library to do that. SDL2's enough of a beast in of itself.