Add some #[inline].
Fix a bug on the ray-cast against AABB.

The bug was introduced by some recent update to the last
rust-nightly (when something changed about std::min and
std::max).