Refactors contains functions

- Supports LibSass
- Closes #587
Refactors is-num function

- Closes #584