target-needs-ref: support default values

Signed-off-by: Jan Dvořák <mordae@anilinux.org>