Add function to get the weight of a container to lua script

This should add a Container:getWeight() to lua script.
Floating point numbers aren't strings. You can't get the precision you're looking for by converting it to a string and back to double, that's wasted CPU cycles and also cuts off precision even more because stof converts it into a float which isn't as large as a double.