Refactor position mixin

- Adds support for `calc()` CSS function
- Fixes #455
Add check for null values in length function