[BUGFIX] Special treatment for raw assets

Hardcoded $type, I know, but I can't think of a better solution. Fixes #295.