Tighten up onebox rendering

Be more strict about what we accept as valid targets for various types of oneboxes.