Added support for rvalue references

Well worth the 30 minutes it took.